<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
    <h2 class="sub-header">标签管理</h2>
    <div class="table-responsive">
        <a class="btn btn-success pull-right" routerLink="/tagadd">新增标签</a>
        <table class="table table-striped">
            <thead>
                <tr>
                    <th>序号</th>
                    <th>分类名称</th>
                </tr>
            </thead>
            <tbody>
                <tr *ngFor="let item of tagList">
                    <td>{{item.id}}</td>
                    <td>
                        <div class="label label-info">
                            {{item.name}}
                        </div>
                    </td>
                    <td>
                        <a class="btn btn-xs btn-warning" [routerLink]="['/tagedit']" [queryParams]="{id:item.id}" href="javascript:;">编辑</a>&nbsp;
                        <a href="javascript:;" (click)="delHandle(item.id)" class="btn btn-xs btn-danger">删除</a>
                    </td>
                </tr>
               
            </tbody>
        </table>
    </div>
</div>